package me.zhengjie.modules.rabbitmq;
 


import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import me.zhengjie.modules.summary.domain.Summary;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.List;


@Slf4j
//@Component
@RabbitListener(queues = "firstQueue")
public class Receiver {
       @RabbitHandler
       public void handler(String msg) {
           log.info("-----------------------------------------------------------------");


           log.info(msg);

           log.info("-----------------------------------------------------------------");


    }
}
